<br />
<?php
$formConfig['htmlOptions']['class'] = 'form-horizontal';
$formConfig['htmlOptions']['role'] = 'form';
?>

<?php $form = $this->beginWidget('ActiveForm', $formConfig); ?>
    
<?php
    echo $form->alert(array($topic, $content), array(
        'errorMessageHtmlOptions' => array('class' => 'alert alert-danger'),
        'flashHtmlOptions' => array('class' => 'alert alert-'),
    ));
?>
    
<?php echo $form->labelEx($content, 'title_', array('class' => 'col-sm-2 control-label')); ?>
<?php echo $form->textField($content, 'title_', array('rows' => 6, 'cols' => 50, 'class' => 'form-control')); ?>
<?php //echo $form->error($content, 'title_'); ?>


        <?php echo $form->labelEx($content, 'description_', array('class' => 'col-sm-2 control-label')); ?>
            <?php echo $form->textArea($content, 'description_', array('rows' => 6, 'cols' => 50, 'class' => 'form-control')); ?>
        <?php //echo $form->error($content, 'description_'); ?>

        
<div class="form-group">
        <div class="col-sm-offset-2 col-sm-6">
            <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-floppy-save"></span> <?php echo $topic->isNewRecord ? Lang::t('news.create.btn.submit') : Lang::t('news.update.btn.submit'); ?></button>
        </div>
    </div>        
        
<?php $this->endWidget(); ?>